package homework;

import java.util.Arrays;

public class Homework4 {
	public static void main(String[] args) {
		char[] arr = {'a','a','a','b','b','b'};
		char[] copy = new char[arr.length];  // '\0'
		
		label:
		for (int i = 0, copy_i = 0 ; i < arr.length ; i++) {
			
			for(int j = 0 ; j < i ; j ++) {
				if (copy[j] == arr[i]) {
					continue label;
				}
			}
			copy[copy_i] = arr[i];
			copy_i ++;
		}
		
		System.out.println(Arrays.toString(copy));
	}
}
